package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Role;

import java.util.List;

public interface RoleDao {
    //增加
    int addRole(String dname);
    //删除 根据id
    int deleteRoleById(int id);
    //修改
    int updateRole(Role role);
    //查询 根据id
    //全查询
    List<Role>findAll(@Param("offset") int offset,@Param("pageSize")int pageSize);
    List<Role> findAll2(@Param("role") Role role, @Param("offset") int offset, @Param("pageSize") int pageSize);
    //根据id
    Role findById(int id);

    int login();

    int count(Role role);
}
